#{extends 'main.html' /} <h2><a style ="color:#400040;" href = "@{Projects.showProject((Long)project.getEntityId())}">${project.name}</a> > <a style ="color:#400040;" href="@{Tasks.showAllProjectTasks((Long)project.getEntityId())}">Tasks</a> > Types/Statuses Control</h2>
<hr/>
<h3>Task Types</h3>
<menu>
    #{list items:taskTypes, as:'taskType'}
    <li type="disc">
    <a href="tasktype/${taskType.getEntityId()}">${taskType.type}</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:showDialogHelper('Confirmation','Are you sure you want to delete?',true,'@{TaskTypes.renderDeleteTaskType(taskType.getEntityId(),false)}','prompt');">Delete </a>
    #{/list}
</menu>
<br>
#{form @TaskTypes.renderCreateTaskType(project.getEntityId(),name,false), id:'createTypeForm'}<input class="validate[required]" type="text" name="name" id="name"/><input type="submit" value="Create"/>#{/form}
<br/>
<hr width="50%" align="left"/>
<h3>Task Statuses</h3>
<menu>
    #{list items:taskStatuses, as:'taskStatus'}
    <li type="disc">
    <a href="taskstatus/${taskStatus.getEntityId()}">${taskStatus.status}</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:showDialogHelper('Confirmation','Are you sure you want to delete?',true,'@{Tasks.renderDeleteTaskStatus((Long)taskStatus.getEntityId(),false)}','prompt');">Delete </a>
    #{/list}
</menu>
<br>
#{form @Tasks.renderCreateTaskStatus(project.getEntityId(),name,false), id:'createStatusForm'}<input class="validate[required]" type="text" name="name" id="name"/><input type="submit" value="Create"/>#{/form}